package com.liefox.mapper;

import com.liefox.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author zjh
 * @Date 2021/4/18 下午 5:16
 **/
@Mapper
@Repository
public interface UserMapper {
    /*注册*/
    public int Signup(User user);
    /*登录*/
    public User Signin(User user);
    /*获取用户名*/
    public String getUserName(@Param("Email") String Email,@Param("Password") String Password);
    /*根据邮箱重置密码*/
    public int recPw(@Param("Email") String Email,@Param("Password") String Password);
    /*获取用户信息*/
    public User getUserInfo(@Param("Email") String Email);
    /*修改用户信息*/
    public int updateUserInfo(User user);
    /*查看全部医生*/
    public List<User> getUser();
    /*修改密码*/
    public int upPw(@Param("Email") String Email,@Param("Password") String Password);
}
